import Vue from 'vue'
import Router from 'vue-router'
import Home from './views/Home.vue'
Vue.use(Router)

export default new Router({
  routes: [
  	{
     	path: '/',
      name: 'home',
      component: Home,
      meta:{
      	title:"首页",
      	requireAuth: true
    	}
    },
    {
    	path: '/login',
      name: 'login',
      component: () => import('./views/Login.vue'),
      meta:{
      	title:"登录"
      }
    },
    {
      path: '/appointment1',
      name: 'appointment1',
      component: () => import('./views/Appointment1.vue'),
      meta:{
      	title:"首页",
      	requireAuth: true//必须加上,验证进入页面是否需要登录
      }
    },
    {
    	path:'/appointment1add',
      name: 'appointment1add',
      component: () => import('./views/Appointment1add.vue'),
      meta:{
      	title:'添加景点信息',
      	requireAuth: true
      }
    },
    {//文章页
      path: '/article',
      name: 'article',
      component: () => import('./views/Article.vue'),
      meta:{
        title: "文章",
        requireAuth: true //验证进入页面是否需要登录
      }
    },
    {//文章轮播图
      path: '/article_turn',
      name: 'article_turn',
      component: () => import('./components/article/article_turn.vue'),
      meta:{
        title: "文章轮播图",
        requireAuth: true //验证进入页面是否需要登录
      }
    },
     {//新增文章页
      path: '/article_add',
      name: 'article_add',
      component: () => import('./components/article/article_add.vue'),
      meta:{
        title: "新增文章",
        requireAuth: false //验证进入页面是否需要登录
      }
    },
    {//修改文章页
      path: '/article_stg',
      name: 'article_stg',
      component: () => import('./components/article/article_change.vue'),
      meta:{
        title: "修改文章",
        requireAuth: false //验证进入页面是否需要登录
      }
    },
    {//动态列表页
      path: '/dynamic',
      name: 'dynamic',
      component: () => import('./views/Dynamic.vue'),
      meta:{
        title: "动态",
        requireAuth: true //验证进入页面是否需要登录
      }
    },
    {//新增动态页
      path: '/dynamic_add',
      name: 'dynamic_add',
      component: () => import('./components/dynamic/dynamic_add.vue'),
      meta:{
        title: "新增动态",
        requireAuth: false //验证进入页面是否需要登录
      }
    },
    {//招聘页
      path: '/takeJob',
      name: 'takeJob',
      component: () => import('./views/TakeJob.vue'),
      meta:{
        title: "招聘",
        requireAuth: true //验证进入页面是否需要登录
      }
    },
    {//新增职位页
      path: '/job_add',
      name: 'job_add',
      component: () => import('./components/takeJob/job_add.vue'),
      meta:{
        title: "新增职位",
        requireAuth: false //验证进入页面是否需要登录
      }
    },
    {//修改职位页
      path: '/job_stg',
      name: 'job_stg',
      component: () => import('./components/takeJob/job_change.vue'),
      meta:{
        title: "新增职位",
        requireAuth: false //验证进入页面是否需要登录
      }
    },
    {
    	path:'/appointment1edit',
    	name:'appointment1edit',
    	component:() => import('./views/Appointment1edit.vue'),
    	meta:{
      	title:'修改景点信息',
      	requireAuth:true
      }
    },
    {
    	path:'/appointment2',
    	name:'appointment2',
    	component:() => import('./views/Appointment2.vue'),
    	meta:{
    		title:'酒店预约',
      	requireAuth:true
    	}
    },
    {
    	path:'/appointment2add',
    	name:'appointment2add',
    	component:() => import('./views/Appointment2add.vue'),
    	meta:{
    		title:'新增 酒店预约',
      	requireAuth:true
    	}
    },
    {
    	path:'/appointment2edit',
    	name:'appointment2edit',
    	component:() => import('./views/Appointment2edit.vue'),
    	meta:{
    		title:'修改 酒店预约',
      	requireAuth:true
    	}
    },
    {
    	path:'/appointment3',
    	name:'appointment3',
    	component:() => import('./views/Appointment3.vue'),
    	meta:{
      	title:'美食列表信息',
      	requireAuth:true
      }
    },
    {
    	path:'/appointment3add',
      name: 'appointment3add',
      component: () => import('./views/Appointment3add.vue'),
      meta:{
      	title:'添加 美食信息',
      	requireAuth:true
      }
    },
    {
    	path:'/appointment3edit',
      name: 'appointment3edit',
      component: () => import('./views/Appointment3edit.vue'),
      meta:{
      	title:'修改 景点信息',
      	requireAuth:true
      }
    },
    {
    	path:'/strategy',
      name: 'strategy',
      component: () => import('./views/Strategy.vue'),
      meta:{
      	title:'攻略 景点信息',
      	requireAuth:true
      	
      }
    },
    {
    	path:'/strategyAdd',
      name: 'strategyAdd',
      component: () => import('./views/StrategyAdd.vue'),
      meta:{
      	title:'添加攻略 景点信息',
      	requireAuth:true
      	
      }
    },
    {
    	path:'/strategyEdit',
      name: 'strategyEdit',
      component: () => import('./views/StrategyEdit.vue'),
      meta:{
      	title:'修改攻略 景点信息',
      	requireAuth:true
      }
    },
    {
    	path:'/homeSwiper',
    	name:'homeSwiper',
    	component:() => import('./views/HomeSwiper.vue'),
    	meta:{
      	title:'首页轮播图',
      	requireAuth: true
      }
    },
    {
    	path:'/homeAdver',
    	name:'homeAdver',
    	component:() => import('./views/HomeAdver.vue'),
    	meta:{
      	title:'首页滚动广告',
      	requireAuth: true
      }
    },
    {
    	path:'/homeStrategy',
    	name:'homeStrategy',
    	component:() => import('./views/HomeStrategy.vue'),
    	meta:{
      	title:'首页攻略',
      	requireAuth: true
      }
    },
    {
    	path:'/homeMap',
    	name:'homeMap',
    	component:() => import('./views/HomeMap.vue'),
    	meta:{
      	title:'首页地图',
      	requireAuth: true
      }
    }
  ]
})
